package com.business_clean.ui.fragment.main;

import android.os.Bundle;

import androidx.annotation.NonNull;

import com.business_clean.app.base.BaseFragment;
import com.business_clean.app.uitl.ToastUtil;
import com.business_clean.databinding.FragmentCameraBinding;
import com.hjq.permissions.OnPermissionCallback;
import com.hjq.permissions.Permission;
import com.hjq.permissions.XXPermissions;

import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import java.util.List;

import me.hgj.mvvmhelper.base.BaseViewModel;

public class CameraFragment extends BaseFragment<BaseViewModel, FragmentCameraBinding> {

    @Override
    public void initView(@Nullable Bundle savedInstanceState) {

        //        XXPermissions.with(this)
//                .permission(Permission.CAMERA)
//                .request(new OnPermissionCallback() {
//                    @Override
//                    public void onGranted(@NonNull @NotNull List<String> permissions, boolean allGranted) {
//                        if (allGranted) {
//                            ToastUtil.show("给相机权限了");
//                        }
//                    }
//                });
    }


}